﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ActivityQuery.aspx.cs" Inherits="PublishActivity_ActivityQuery" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/becom.css" rel="stylesheet" type="text/css" />
    <link href="../css/tree.css" rel="stylesheet" type="text/css" />
    <link href="../css/list.css" rel="stylesheet" type="text/css" />
    <script src="../js/date.js" type="text/javascript"></script>
    <style type="text/css">
<!--
.STYLE2 {color: #0000FF}
.STYLE1 {color: #FF0000}
.style3 {color: #0000CC}
-->
</style>
    <script type="text/JavaScript">
<!--
        function MM_goToURL() { //v3.0
            var i, args = MM_goToURL.arguments; document.MM_returnValue = false;
            for (i = 0; i < (args.length - 1); i += 2) eval(args[i] + ".location='" + args[i + 1] + "'");
        }
        //-->

        window.onload = function () {
            selectOne();
        }

        function selectOne() {
            var gvlist = document.getElementById("<%=gvActivityList.ClientID%>");
            if (gvlist != null) {
                if (gvlist.hasChildNodes) {
                    var radioBtn = gvlist.getElementsByTagName("input");
                    if (radioBtn.length > 0) {
                        for (var i = 0; i < radioBtn.length; i++) {
                            if (radioBtn[i].type == "radio") {
                                radioBtn[i].attachEvent("onclick", function (event) {
                                    var obj = event.srcElement;
                                    for (var j = 0; j < radioBtn.length; j++) {
                                        //                            alert(obj.id);
                                        //                            alert(radioBtn[j].id);
                                        if (obj.id == radioBtn[j].id) {
                                            radioBtn[j].checked = true;
                                        } else {
                                            radioBtn[j].checked = false;
                                        }
                                    }

                                });
                            }
                        }
                    }
                }
            }
        }
    </script>
</head>
<body>
    <div>
        <form id="form1" runat="server">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="99%" height="510" valign="top">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="59%" height="35">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/backg_action1.gif">
                                    <tr>
                                        <td width="32" height="28" valign="middle">
                                            <div align="center">
                                                <img src="../images/ico5.gif" width="16" height="16" /></div>
                                        </td>
                                        <td valign="middle">
                                            当前操作：发布活动投稿
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="41%">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                    <div>
                        <table width="864" border="0" cellpadding="0" cellspacing="2">
                            <tr>
                                <td width="82">
                                    <div align="right">
                                        发布日期：</div>
                                </td>
                                <td width="193">
                                    <asp:TextBox ID="startDate" runat="server"></asp:TextBox>
                                    至
                                    <asp:TextBox ID="endDate" runat="server"></asp:TextBox>
                                </td>
                                <td width="70">
                                    <div align="right">
                                        活动标题：</div>
                                </td>
                                <td width="189">
                                    <asp:TextBox ID="activityTitle" runat="server"></asp:TextBox>
                                </td>
                                <td width="97">
                                    <div align="right">
                                        发布状态：</div>
                                </td>
                                <td width="112">
                                    <%-- <select name="select" id="select">
                                        <option value="" selected>全部</option>
                                        <option>已发布</option>
                                        <option>取消发布</option>
                                    </select>--%>
                                    <asp:DropDownList ID="ddlStatus" runat="server" AutoPostBack="True">
                                        <asp:ListItem Value="0">全部</asp:ListItem>
                                        <asp:ListItem Value="1">已发布</asp:ListItem>
                                        <asp:ListItem Value="2">取消发布</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td width="105">
                                    <asp:Button ID="btnQuery" runat="server" Text="查询" class="input_btn" OnClick="btnQuery_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <table width="99%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="10" height="33">
                                <img src="../images/cor_tabletitle1.gif" width="10" height="33" />
                            </td>
                            <td background="../images/cor_tabletitle3.gif">
                                <div align="center">
                                    <strong>&nbsp;活动投稿列表</strong>
                                </div>
                            </td>
                            <td width="10">
                                <div align="right">
                                    <img src="../images/cor_tabletitle2.gif" width="10" height="33" />
                                </div>
                            </td>
                        </tr>
                    </table>
                    <asp:GridView ID="gvActivityList" runat="server" Height="267px" Width="99%" 
                        ShowHeaderWhenEmpty="True">
<%--                        <Columns>
                            <asp:TemplateField HeaderText="选择">
                                               <ItemTemplate> <asp:RadioButton ID="RadioButton1" runat="server">
                                </asp:RadioButton></ItemTemplate> 
                            </asp:TemplateField>
                            <asp:BoundField DataField="Num" HeaderText="序号" />
                        </Columns>--%>
                        <RowStyle HorizontalAlign="Center" />

                    </asp:GridView>
                    <%-- <table width="99%" height="271" cellpadding="0" cellspacing="1" bgcolor="#EBE9E4">
                    <tr bgcolor="#FFFFFF" onmouseover="this.className='e_1'" onmouseout="this.className='e_2'">
                        <td height="267">
                           <table width="100%" cellpadding="0" cellspacing="1" bgcolor="#EBE9E4" class="td">
                                <asp:GridView ID="gvActivityList" runat="server">
                                </asp:GridView>
                            </table>
                            
            </td>
        </tr>
        </table>--%>
                    <div>
                        <table width="99%" border="0" cellpadding="2" cellspacing="2">
                            <tr>
                                <td width="100%">
                                    <p>
                                        共150条记录 1/3页
                                        <input name="button82" type="button" class="input_btn" id="button84" value=" 首页 " />
                                        <input name="button82" type="button" class="input_btn" id="button85" value="前一页" />
                                        <input name="button52" type="button" class="input_btn" id="button5" value="后一页" />
                                        <input name="button82" type="button" class="input_btn" id="button86" value=" 末页 " /></p>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <table width="99%" border="0" cellpadding="2" cellspacing="2">
                    </table>
                    <table width="99%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="8">
                                <div align="left">
                                    <img src="../images/cor_tablefooter1.gif" width="8" height="39" /></div>
                            </td>
                            <td background="../images/cor_tablefooter3.gif">
                                <div align="right">
                                    <input name="button23" type="button" class="input_btn" id="button23" onclick="MM_goToURL('self','tougao_add.html');return document.MM_returnValue"
                                        value=" 增加 " />
                                    <input name="button232" type="button" class="input_btn" id="button232" value=" 修改 " />
                                    <input name="button222" type="button" class="input_btn" id="button222" value=" 删除 " />
                                    <input name="button222" type="button" class="input_btn" id="button222" value=" 发布 " />
                                    <input name="button222" type="button" class="input_btn" id="button222" value=" 取消发布 " />
                                    <input name="button222" type="button" class="input_btn" id="button222" onclick="MM_goToURL('self','tougao_zongjie.html');"
                                        value=" 维护投稿总结 " />
                                </div>
                            </td>
                            <td width="8">
                                <div align="right">
                                    <img src="../images/cor_tablefooter2.gif" width="8" height="39" />
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        </form>
    </div>
</body>
</html>
